﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 按钮事件数据类
/// </summary>
public class ButtonEventArgs : MyEventArgs
{
    private GameTypeDefine.BUTTON_ID m_button;

    private float m_axis = 0;
    /// <summary>
    /// 衡量按钮
    /// </summary>
    public float Axis
    {
        get
        {
            return m_axis;
        }
        set
        {
            m_axis = value;
        }
    }

    private float m_pressedTime = 0;
    /// <summary>
    /// 按下的时间
    /// </summary>
    public float PressedTime
    {
        get
        {
            return m_pressedTime;
        }
        set
        {
            m_pressedTime = value;
        }
    }

    public ButtonEventArgs(GameTypeDefine.BUTTON_ID button)
    {
        m_button = button;
    }

    public GameTypeDefine.BUTTON_ID GetButtonID()
    {
        return m_button;
    }
}
